public class Test {
    public static void main(String[] args) {
        BinaryTree binaryTree=new BinaryTree();
        BinaryTree.TreeNode root= binaryTree.createTree();
        binaryTree.preOrder(root);
        System.out.println();
        binaryTree.inOrder(root);
        System.out.println();
        binaryTree.postOrder(root);
        System.out.println();
        binaryTree.levelOrder(root);
//        binaryTree.getLeafNodeCount(root);
//        System.out.println(binaryTree.size(root));
//        System.out.println(BinaryTree.leafNode);
//        int ret=binaryTree.getHeight(root);
//        System.out.println(ret);
    }
}
